import React from 'react'
import {DataTable} from 'primereact/datatable'
import {Column} from 'primereact/column'

class PermissionData extends React.Component{
  constructor(){
    super()

    this.state={
      assets:[
        {name: '1', address: '2', threshold:'3', premiss:'4'},
        {name: '1', address: '2', threshold:'3', premiss:'4'},
        {name: '1', address: '2', threshold:'3', premiss:'4'},
        {name: '1', address: '2', threshold:'3', premiss:'4'},
        {name: '1', address: '2', threshold:'3', premiss:'4'},
        {name: '1', address: '2', threshold:'3', premiss:'4'},
      ]
    }
  }

  render(){
    return (
      <DataTable value={this.state.assets}>
        <Column field="name" header="名字" />
        <Column field="address" header="地址/账户" />
        <Column field="threshold" header="阈值" />
        <Column field="premiss" header="权重" />
      </DataTable>
    )
  }
}

class Permission extends React.Component{
  render(){
    return (
      <PermissionData />
    )
  }
}

export default Permission